Skip to content

Conversation

@remyleone
Copy link
Member

Potential fix for https://github.com/scaleway/terraform-provider-scaleway/security/code-scanning/15

To fix the problem, add a permissions block to the workflow to explicitly specify the minimal required permissions for the GITHUB_TOKEN. Since the workflow publishes releases (which requires writing to repository contents), set contents: write at the workflow level. This ensures the workflow has only the permissions it needs and adheres to the principle of least privilege. The permissions block should be added at the top level of the workflow file, just after the name: field and before the on: field.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@remyleone remyleone marked this pull request as ready for review August 19, 2025 08:57
@remyleone remyleone changed the title Potential fix for code scanning alert no. 15: Workflow does not contain permissions fix(releaser): add permissions in github actions Aug 19, 2025
@jremy42 jremy42 added this pull request to the merge queue Aug 25, 2025
Merged via the queue into master with commit 1d18128 Aug 25, 2025
48 checks passed
@jremy42 jremy42 deleted the alert-autofix-15 branch August 25, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants